package com.itheima.day05_method;

public class Demo10_Test {
    public static void main(String[] args) {
        chu(10,0);

        chu(10, 3);
    }
    public static void chu(int a, int b){
        if (b == 0){
            System.out.println("除数不能为零");
            return;
        }
        int c = a / b;
        System.out.println("c = " + c);
    }
}
